$OpenBSD: patch-gtk2_ardour_route_time_axis_cc,v 1.1 2016/10/28 13:46:17 ajacoutot Exp $

From 65c2e089ab263c83bff7d2e945b80c53f80b749b Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@tiptoe.de>
Date: Thu, 4 Aug 2016 09:48:47 +0200
Subject: [PATCH] workaround changes in glibmm 2.49.x

--- gtk2_ardour/route_time_axis.cc.orig	Fri Oct 28 13:49:34 2016
+++ gtk2_ardour/route_time_axis.cc	Fri Oct 28 13:50:21 2016
@@ -31,7 +31,8 @@
 #include <pbd/whitespace.h>
 #include <pbd/memento_command.h>
 
-#include <gtkmm.h>
+#include <gtkmm/menu.h>
+#include <gtkmm/menuitem.h>
 #include <gtkmm2ext/gtk_ui.h>
 #include <gtkmm2ext/selector.h>
 #include <gtkmm2ext/stop_signal.h>
@@ -76,8 +77,6 @@
 
 #include "i18n.h"
 
-namespace sigc { SIGC_FUNCTORS_HAVE_RESULT_TYPE }
-
 using namespace ARDOUR;
 using namespace PBD;
 using namespace Gtkmm2ext;
@@ -90,7 +89,7 @@ Glib::RefPtr<Gdk::Pixbuf> RouteTimeAxisView::slider;
 void
 RouteTimeAxisView::setup_slider_pix ()
 {
-	if ((slider = ::get_icon ("fader_belt_h")) == 0) {
+	if (! (slider = ::get_icon ("fader_belt_h"))) {
 		throw failed_constructor ();
 	}
 }
